package cn.com.yx.ms.persistence;

import cn.com.yx.ms.domain.dbmodel.LiveConfigMedia;
import cn.com.yx.ms.domain.live.LiveConfigCarouselMediaModel;
import cn.com.yx.ms.domain.live.LiveConfigIntercutMediaModel;
import cn.com.yx.ms.domain.live.LiveConfigLiveMediaModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LiveConfigMediaMapper {
    int deleteByPrimaryKey(String guid);

    int insert(LiveConfigMedia record);

    int insertSelective(LiveConfigMedia record);

    LiveConfigMedia selectByPrimaryKey(String guid);

    int updateByPrimaryKeySelective(LiveConfigMedia record);

    int updateByPrimaryKey(LiveConfigMedia record);

    int deleteMediasByCguid(@Param("cguid")String cguid);

    List<LiveConfigLiveMediaModel> findLiveMedias(@Param("cguid") String cguid);
    List<LiveConfigIntercutMediaModel> findIntercutMedias(@Param("cguid") String cguid);
    List<LiveConfigCarouselMediaModel> findCarouselMedias(@Param("cguid") String cguid);
}